function SubmitQueryData(n,t){var c=HiddenValues.vCity,l=HiddenValues.vCountry,s=HiddenValues.vIP,a=n.vURL+"{device="+HiddenValues.iqGuid+"}",v=contains.call(blockedIP,s),y=HiddenValues.campaignid,p=HiddenValues.gad_source,w=HiddenValues.gclid,b=HiddenValues.keyword,k=HiddenValues.utm_campaign,d=HiddenValues.utm_medium,g=HiddenValues.utm_source,o,i,r,u,f,e,h;if(!v){if(o=$("#"+t.SenderControlID).val(),checkempty(o))return invalid_data_msg($("#"+t.SenderControlID),"Please enter a valid name to submit your query!"),$("#"+t.SenderControlID).focus(),!1;if(invalid_data_msg($("#"+t.SenderControlID),""),i="",checkempty(t.SenderControlCountryCodeID))i=HiddenValues.vCountryCode;else if(i=$("#"+t.SenderControlCountryCodeID).val(),i==undefined)i=HiddenValues.vCountryCode;else{if(checkempty(i))return invalid_data_msg($("#"+t.SenderControlCountryCodeID),"Please enter a valid country-code to submit your query!"),$("#"+t.SenderControlCountryCodeID).focus(),!1;invalid_data_msg($("#"+t.SenderControlCountryCodeID),"")}if(r=$("#"+t.SenderControlMobileID).val(),checkempty(r))return invalid_data_msg($("#"+t.SenderControlMobileID),"You have entered an invalid mobile number. Please try again."),$("#"+t.SenderControlMobileID).focus(),!1;if(is_numeric(r)){if(HiddenValues.vCountryCode=="+91"&&r.length!=10)return invalid_data_msg($("#"+t.SenderControlMobileID),"Please enter a valid 10 digit mobile number."),$("#"+t.SenderControlMobileID).focus(),!1;invalid_data_msg($("#"+t.SenderControlMobileID),"")}else return invalid_data_msg($("#"+t.SenderControlMobileID),"You have entered an invalid mobile number. Please try again."),$("#"+t.SenderControlMobileID).focus(),!1;if(u=$("#"+t.SenderControlEmailID).val(),checkempty(u))return invalid_data_msg($("#"+t.SenderControlEmailID),"You have entered an invalid e-mail address. Please try again."),$("#"+t.SenderControlEmailID).focus(),!1;if(validate_email(u))invalid_data_msg($("#"+t.SenderControlEmailID),"");else return invalid_data_msg($("#"+t.SenderControlEmailID),"You have entered an invalid e-mail address. Please try again."),$("#"+t.SenderControlEmailID).focus(),!1;if(qMessage=$("#"+t.SenderControlMsgID).val(),checkempty(qMessage))return invalid_data_msg($("#"+t.SenderControlMsgID),"Please provide some information about your query!"),$("#"+t.SenderControlMsgID).focus(),!1;invalid_data_msg($("#"+t.SenderControlMsgID),"");f=$("#"+t.SenderControlTimeID).val();f===undefined&&(f="");e=$("#"+t.SenderControlBudgetRangeID).val();checkempty(e)&&(e="Any");setProjectQueryData(n.vAgentID,o,i,f,r,u,qMessage,l,c,s,a,n.vProject,e,y,p,w,b,k,d,g);$("#"+t.SenderControlID).val("");$("#"+t.SenderControlMobileID).val("");$("#"+t.SenderControlMobileID).val("");$("#"+t.SenderControlEmailID).val("");$("#"+t.SenderControlMsgID).val("");$("#"+t.SenderControlTimeID).prop("selectedIndex",0);h=window.open(n.thankspageurl,"popupWindow","popupWindow","width=359,height=365,top=150,left=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");setTimeout(function(){h.close()},3e3)}return!0}function setProjectQueryData(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d){var g;g=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");g.onreadystatechange=function(){g.readyState==4&&g.status==200};g.open("GET","https://api2.gtftech.com/AjaxHelper/AgentInstantQuerySetter.aspx?qAgentID="+n+"&qSenderName="+t+"&qMobileNo="+u+"&qEmailID="+f+"&qCountryCode="+i+"&qTimeslot="+r+"&qQueryMessage="+e+"&qCountry="+o+"&qCityName="+s+"&qIP="+h+"µsiteurl="+c+"&qProjectName="+l+"&qBudgetRange="+a+"&qcampaignid="+v+"&qgad_source="+y+"&qgclid="+p+"&qkeyword="+w+"&qutm_campaign="+b+"&qutm_medium="+k+"&qutm_source="+d+"",!0);g.send()}function isNumberKey(n){var t=n.which?n.which:event.keyCode;return t>31&&(t<48||t>57)?!1:!0}function emailValidator(n){return n.value.match(/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/)?!0:(alert("Invalid E-mail Address! Please re-enter ?"),n.focus(),!1)}function validate_email(n){var t=!1;return n.match(/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/)!=null&&(t=!0),t}function is_numeric(n){return/^[0-9-+]+$/.test(n)?!0:!1}function checkempty(n){return n==null||n==undefined||n=="undefined"||n==""||n.length==0?!0:!1}function getCookie(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i-1},invalid_data_msg=function(n,t){checkempty(t)?($(n).attr("data-exists","false"),$(n).next(".invalid-data").remove()):($(n).attr("data-exists","true"),$(n).next(".invalid-data").remove(),$(n).after("